home *** CD-ROM | disk | FTP | other *** search
/ Halting the Hacker - A P…uide to Computer Security / Halting the Hacker - A Practical Guide to Computer Security.iso / rfc / rfc1078.txt < prev    next >
Text File  |  1997-04-01  |  3KB  |  115 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Network Working Group                                          M. Lottor
  8. Request For Comments: 1078                                       SRI-NIC
  9.                                                            November 1988
  10.  
  11.  
  12.                  TCP Port Service Multiplexer (TCPMUX)
  13.  
  14. Status of this Memo
  15.  
  16.    This RFC proposes an Internet standard which can be used by future
  17.    TCP services instead of using 'well-known ports'.  Distribution of
  18.    this memo is unlimited.
  19.  
  20. Overview
  21.  
  22.    Ports are used in the TCP to name the ends of logical connections
  23.    which carry long term conversations.  For the purpose of providing
  24.    services to unknown callers, a service contact port is defined.  The
  25.    contact port is sometimes called the "well-known port".  Standard TCP
  26.    services are assigned unique well-known port numbers in the range of
  27.    0-255.  These ports are of limited number and are typically only
  28.    assigned to official Internet protocols.
  29.  
  30.    This RFC defines a protocol to contact multiple services on a single
  31.    well-known TCP port using a service name instead of a well-known
  32.    number.  In addition, private protocols can make use of the service
  33.    without needing an official TCP port assignment.
  34.  
  35. The Protocol
  36.  
  37.    A TCP client connects to a foreign host on TCP port 1.  It sends the
  38.    service name followed by a carriage-return line-feed <CRLF>.  The
  39.    service name is never case sensitive.  The server replies with a
  40.    single character indicating positive ("+") or negative ("-")
  41.    acknowledgment, immediately followed by an optional message of
  42.    explanation, terminated with a <CRLF>.  If the reply was positive,
  43.    the selected protocol begins; otherwise the connection is closed.
  44.  
  45. Service Names
  46.  
  47.    The name "HELP" is reserved.  If received, the server will output a
  48.    multi-line message and then close the connection.  The reply to the
  49.    name "HELP" must be a list of the service names of the supported
  50.    services, one name per line.
  51.  
  52.    The names listed in the "Protocol and Service Names" section of the
  53.    current edition of "Assigned Numbers" (RFC-1010 at this time) are
  54.    reserved to have exactly the definitions specified there.  Services
  55.  
  56.  
  57.  
  58. Lottor                                                          [Page 1]
  59.  
  60. RFC 1078                         TCPMUX                    November 1988
  61.  
  62.  
  63.    with distinct assigned ports must be available on those ports and may
  64.    optionally be available via this port service multiplexer on port 1.
  65.  
  66.    Private protocols should use a service name that has a high chance of
  67.    being unique.  A good practice is to prefix the protocol name with
  68.    the name of your organization.
  69.  
  70.    Multiple versions of a protocol can suffix the service name with a
  71.    protocol version number.
  72.  
  73. Implementation Notes
  74.  
  75.    A negative reply will typically be returned by the port-multiplexing
  76.    process when it can't find the requested service.  A positive reply
  77.    will typically be returned by the process invoked by the port
  78.    multiplexer for the requested service.
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114. Lottor                                                          [Page 2]
  115.